package com.ning.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Auther: vanse(lc))
 * @Date: 2022/11/3-11-03-14:37
 * @Description：com.briup.common.properties
 */
@Data
@Component
@ConfigurationProperties(prefix = "com.ning.config.cors")
public class CorsProperty {
    private String pathPattern = "/**"; // 拦截路径
    private String[] origins; // 主机 *  127.00.0.1
    private boolean allowCredentials;  // 是否携带cookie
    private String[] methods; // 允许的请求
    private String[] headers; // 允许的头
    private long maxAge;  // 预检请求的缓存时间
}
